<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page isELIgnored="false" %>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <title>易买网 - 首页</title>

    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/function.js"></script>

</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="${pageContext.request.contextPath}/images/logo.gif" /></div>

    <%@include file="manage/common/header.jsp"%>

    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="#">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="#">音乐</a></li>
            <li><a href="#">影视</a></li>
            <li><a href="#">少儿</a></li>
            <li><a href="#">动漫</a></li>
            <li><a href="#">小说</a></li>
            <li><a href="#">外语</a></li>
            <li><a href="#">数码相机</a></li>
            <li><a href="#">笔记本</a></li>
            <li class="last"><a href="#">Investor Relations</a></li>
        </ul>
    </div>
</div>
<div id="main" class="wrap">
    <div class="lefter">
        <div class="box">
            <h2>商品分类</h2>

            <dl>
                <c:forEach items="${findBigProductCategory}" var="big">
                <dt>${big.epc_name}</dt>

                <c:forEach items="${findSmallProductCategory}" var="small">
                    <c:if test="${big.epc_id==small.epc_parent_id}">
                        <dd><a href="#">${small.epc_name}</a></dd>
                    </c:if>
                </c:forEach>
                </c:forEach>
            </dl>


        </div>
        <div class="spacer"></div>
        <div class="last-view">
            <h2>最近浏览</h2>
            <dl class="clearfix">


                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>
                <dd><a href="product-view.html">法国德菲丝松露精品巧克力500g/盒</a></dd>
                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>

                <dd><a href="product-view.html">法国德菲丝松露精品巧克力500g/盒</a></dd>
            </dl>
        </div>
    </div>
    <div class="main">
        <div class="price-off">
            <h2>商品列表</h2>
            <ul class="product clearfix">
                <c:forEach items="${productList}" var="product">
                <li>
                    <dl>

                        <dt><a href="${pageContext.request.contextPath}/product/detail?epId=${product.ep_id}" target="_blank">
                            <img src="${pageContext.request.contextPath}/images/product/${product.ep_file_name}" /></a></dt>

                        <dd class="title"><a href="${pageContext.request.contextPath}/product/detail?epId=${product.ep_id}" target="_blank">${product.ep_name}</a></dd>
                        <dd class="price">￥${product.ep_price}</dd>

                    </dl>
                </li>
                </c:forEach>

            </ul>

            <div class="pager">
                <ul class="clearfix">
                    <c:if test="${curPage!=1}">

                        <li><a href="${pageContext.request.contextPath}/index/front?page=${curPage-1}">上一页</a></li>
                    </c:if>
                    <c:if test="${curPage!=maxPage}">
                        <li><a href="${pageContext.request.contextPath}/index/front?page=${curPage+1}">下一页</a></li>
                    </c:if>

                </ul>
            </div>

        </div>
        <div class="side">
            <div class="spacer"></div>
            <div class="news-list">
                <h4>新闻动态</h4>

                <ul>
                    <c:forEach items="${ebNews}" var="ebNews">
                    <li><a href="${pageContext.request.contextPath}/news/news-view?enId=${ebNews.enId}" target="_blank">${ebNews.enContent}</a></li>
                    </c:forEach>
                </ul>

            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2016 湖南软测信息技术有限公司 All Rights Reserved. 湘ICP证1001号
</div>
</body>
</html>
